package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by liml on 17/6/21.
 */

@DatabaseTable(tableName = "tb_enterinfo")
public class EnterInfo implements Serializable{

    public final static String ID_FIELD_NAME = "id";//这里用一个常量来设置属性的名字，这样我们在中就可以直接使用该名字
    public final static String TABLE_NAME= "tb_enterinfo";

    @DatabaseField(generatedId=true,columnName="autoId")
    private Integer autoId ;//主键
    @DatabaseField
    private String account;
    @DatabaseField
    private String password;
    @DatabaseField
    private String enterinfo;

    public EnterInfo() {
    }

    public EnterInfo(Integer autoId, String account, String password, String enterinfo) {
        this.autoId = autoId;
        this.account = account;
        this.password = password;
        this.enterinfo = enterinfo;
    }

    public Integer getAutoId() {
        return autoId;
    }

    public void setAutoId(Integer autoId) {
        this.autoId = autoId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEnterinfo() {
        return enterinfo;
    }

    public void setEnterinfo(String enterinfo) {
        this.enterinfo = enterinfo;
    }

    @Override
    public String toString() {
        return "EnterInfo{" +
                "autoId=" + autoId +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", enterinfo='" + enterinfo + '\'' +
                '}';
    }
}
